﻿/*
 * Created by SharpDevelop.
 * User: xieen
 * Date: 2013-08-26
 * Time: 10:28
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;

namespace GoF23Learning._18.Memento_Pattern
{
	/// <summary>
	/// Description of Rectangle.
	/// </summary>
	public class Rectangle :ICloneable
	{
		private int x;
		private int y;
		private int width;
		private int height;
		
		public int X {
			get { return x; }
			set { x = value; }
		}

		public int Y {
			get { return y; }
			set { y = value; }
		}

		public int Width {
			get { return width; }
			set { width = value; }
		}
		
		
		public int Height {
			get { return height; }
			set { height = value; }
		}
		
		
		public Rectangle(int x,int y,int width,int height)
		{
			this.x = x;
			this.y = y;
			this.width = width;
			this.height = height;		
		}
		
		public void SetValue(Rectangle r)
		{
			this.x = r.X;
			this.y = r.Y;
			this.width = r.Width;
			this.height = r.Height;		 
		}
		
		public object Clone()
		{
			return this.MemberwiseClone();
		}
		public void MoveTo(Point to)
		{
			
		}
		
		public void ChangeWidth(int height)
		{
			
		}
		public void ChangeHeight(int height)
		{
			
		}		
		
	}
}
